package FamilyTherapy;

public class EventCard extends Card
{
	private int decisionMaker;
	private int point[];
	
	private String[] events = {"Q1_Mother fights with father", 
								"Q2_Grandpa kisses Father", 
								"Q3_Grandma died", 
								"Q4_Son killed father", 
								"Q5_Son failed in examination"};
	
	private String[][] choiceDescription ={{"Q1_choice 1", "Q1_choice 2", "Q1_choice 3", "Q1_choice 4"},
											{"Q2_choice 1", "Q2_choice 2", "Q2_choice 3", "Q2_choice 4"},
											{"Q3_choice 1", "Q3_choice 2", "Q3_choice 3", "Q3_choice 4"},
											{"Q4_choice 1", "Q4_choice 2", "Q4_choice 3", "Q4_choice 4"},
											{"Q5_choice 1", "Q5_choice 2", "Q5_choice 3", "Q5_choice 4"}};
	
	 private int[][] choicePoint ={{2, 1, -1, -2},
 									{2, 1, -1, -2},
 									{2, 1, -1, -2},
							        {2, 1, -1, -2},
							        {2, 1, -1, -2}};

	 public EventCard(int cardNum)
	 {
		  cardID = cardNum;	
		  description = events[cardID];	
		  decisionMaker = cardID;	
		  point = choicePoint[cardID];
	 }

	public void getDescription(int cardNum) 
	{ 
		GCWindow.outputStr(events[cardNum]+"\n");
	}
	
	public void displayChoiceDescription()
	{
	  for(int i=0; i<choiceDescription[cardID].length; i++) {
		  GCWindow.outputStr("Choice " + i + " :\n");
		  GCWindow.outputStr(choiceDescription[cardID][i]+"\n");
	  }
	 }

	
	public int getPoint(int choice) 
	{
		return choicePoint[cardID][choice];
	}
	
	public int getDecisionMaker()
	{
		return decisionMaker;
	}
}
